Set Color Sensor
Function:
magician.set_color_sensor(port, enable, version)Description: set the enabling status and version of color sensor
Required parameter:
- port: connect the color sensor to Magician port. range: 1~6
- enable: enable the color sensor. True: enabled; False: disabled
- version: version of color sensor. 0: V1.0; 1: V2.0
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magician.set_color_sensor(port=1, enable=True, version=0)Connect the color sensor to Magician Port 1. Enable the color sensor, and set the version as V1.0.